#define LOOP_3D(k, kmin, kmax, j, jmin, jmax, i, imin, imax)                   \
  for (int k = kmin; k <= kmax; ++k)                                           \
    for (int j = jmin; j <= jmax; ++j)                                         \
      for (int i = imin; i <= imax; ++i)

#include <iostream>
#include <string>
using namespace std;
/**
 * @brief 输入文本，统计其单词出现数目
 *
 * @return int
 */
int main() {
  // 无法编译
  int end[3]{3, 3, 3}, beg[3]{1, 1, 1};
  LOOP_3D(l, beg[0], end[0], m, beg[1], end[1], n, beg[2], end[2]) {
    cout << l * m * n << endl;
  }
  return 0;
}